package com.example.demo.utils;

import java.util.concurrent.ThreadLocalRandom;

public class VerificationCodeUtil {
    public static String generateRandomCode() {
        // 生成 1000 到 9999 之间的随机数
        int code = ThreadLocalRandom.current().nextInt(1000, 10000);
        return String.valueOf(code);
    }
}
